<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .ss{
            border: 1px solid red;
        }

    </style>
</head>
<body>
<div id="app">
    <input type="button" @click="aa">
    <img src="333.jpg" v-show="isShow">
    <input type="button" @click="ba">
    <img src="333.jpg" v-show="age>13">

    <p v-if="isShow">啪嗒111</p>

    <img :src="imgsrc" :title="age+'!!'" :class="{ss:isd}"
         @click="cc" >
    <br>
    <img :src="imgsrc" :title="age+'!!'" :class="isd?'ss':''"
         @click="cc" >
    
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
    var app=new Vue({
        el:"#app",
        data:{
             isShow:false,
                age:12,
                imgsrc:"333.jpg",
            isd:false

        },
        methods:{
            aa:function () {
                this.isShow=! this.isShow
            },
            ba:function () {
                this.age++
            }, cc:function () {
                this.isd=! this.isd
            }
        }

    })

</script>
</body>
</html>